package com.praveen.twu;

import com.praveen.twu.item.Book;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by praveen on 20/6/14.
 */
public class BookManager {

    List<Book> books = new ArrayList<Book>();

    public List<Book> getBookList() {
        return books;
    }

    public void populate() {
        books.clear();
        books.add(new Book("1000", "Harry Potter", "J. K. Rowling", 1997));
        books.add(new Book("1001", "A Game of Thrones", "George R. R. Martin", 1996));
        books.add(new Book("1010", "Journey to the center of the Earth", "Jules Verne", 1864));
        books.add(new Book("1011", "Treasure Island", "R. L. Stevenson", 1883));
    }
}
